package com.ruoyi.channel.service;

import com.ruoyi.channel.domain.ChannelWithdrawalBank;
import com.ruoyi.common.core.domain.AjaxResult;

import java.util.List;

/**
 *  服务层
 * 
 * @author ruoyi
 * @date 2019-05-08
 */
public interface IChannelWithdrawalBankService 
{
	/**
     * 查询信息
     * 
     * @param id ID
     * @return 信息
     */
	public ChannelWithdrawalBank selectChannelWithdrawalBankById(Long id);
	
	/**
     * 查询列表
     * 
     * @param channelWithdrawalBank 信息
     * @return 集合
     */
	public List<ChannelWithdrawalBank> selectChannelWithdrawalBankList(ChannelWithdrawalBank channelWithdrawalBank);
	
	/**
     * 新增
     * 
     * @param channelWithdrawalBank 信息
     * @return 结果
     */
	public int insertChannelWithdrawalBank(ChannelWithdrawalBank channelWithdrawalBank);
	
	/**
     * 修改
     * 
     * @param channelWithdrawalBank 信息
     * @return 结果
     */
	public int updateChannelWithdrawalBank(ChannelWithdrawalBank channelWithdrawalBank);
		
	/**
     * 删除信息
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	public int deleteChannelWithdrawalBankByIds(String ids);


	/**
	 * 添加渠道-代付银行
	 * @param channelId		渠道id
	 * @param bankIds		银行id数组
	 * @return				结果
	 */
	AjaxResult insertChannelWithdrawalBankByChannelIdAndBankIds(Long channelId, Long[] bankIds);


	/**
	 * 根据渠道id 查询已添加银行
	 * @param channelId	渠道id
	 * @return			渠道-代付银行集合
	 */
	List<ChannelWithdrawalBank> selectChannelWithdrawalBankListByChannelId(Integer channelId);

}
